import hashlib
import os

password = input("请输入您的密码:")

# 可以在密码前后加盐值
# password1 = 'abcd' + password + '聂茹凤'
# 生成32位的随机盐值
salt = os.urandom(16).hex()

password1 = password + salt

p = hashlib.md5(password1.encode('utf-8')).hexdigest()

print(p)